<?php
class Account extends AppModel
{
	public $name = "Account";

    public $belongsTo = array('User' => array('className' => 'User',
                                              'conditions' => '`User`.`active`=1',
                                              'order' => '',
                                              'foreignKey' => 'user_id'
                                              )
                              );

    public $validate = array('name' =>
                              array('rule' => 'notEmpty',
                                    'message' => 'Enter a valid account name'
                                    )
                             );


}
?>